function createBar(divId){
	var dom = document.getElementById(divId);
	var myChart = echarts.init(dom);
	option = {
		    title: {
		        x: 'left',
		        text: '机载设备告警统计',
		        textStyle : {
					color : '#fff',
					fontWeight : 'bolder',
					fontSize : 20,
					fontFamily:'Helvetica, Hiragino Sans GB, Microsoft Yahei, 微软雅黑, Arial, sans-serif'
				}
		    },
		    tooltip: {
		        trigger: 'item'
		    },
		    calculable: true,
		    grid:{
		    	borderWidth: 0,
				x : 50,
				width:'75%'
			 },
		    xAxis: [
		        {
		            type: 'category',
		            show: false,
		            data: ['SERVER', 'CAP', 'CMT', '天线设备']
		        }
		    ],
		    yAxis: [
		        {
		            type: 'value',
		            show: false
		        }
		    ],
		    series: [
		        {
		            name: '告警类型统计',
		            type: 'bar',
		            itemStyle: {
		                normal: {
		                    color: function(params) {
		                        // build a color map as your need.
		                        var colorList = [
		                          '#C1232B','#B5C334','#FCCE10','#E87C25'
		                        ];
		                        return colorList[params.dataIndex]
		                    },
		                    label: {
		                        show: true,
		                        position: 'top',
		                        formatter: '{b}\n{c}'
		                    }
		                }
		            },
		            data: [12,21,10,4],
		            markPoint: {
		                tooltip: {
		                    trigger: 'item',
		                    backgroundColor: 'rgba(0,0,0,0)',
		                    formatter: function(params){
		                        return '<img src="' 
		                                + params.data.symbol.replace('image://', '')
		                                + '"/>';
		                    }
		                },
		                data: [
		                    {xAxis:0, y: 350, name:'SERVER'},
		                    {xAxis:1, y: 350, name:'CAP'},
		                    {xAxis:2, y: 350, name:'CMT'},
		                    {xAxis:3, y: 350, name:'天线设备'},		                   
		                ]
		            }
		        }
		    ]
		};
		                    
		                    
		                    

	myChart.setOption(option, true);
	

	
	return myChart;
}




